/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pkgenum;

import java.util.Scanner;

/**
 *
 * @author Student
 */
public class Enum {
   

    enum Door
        {
            POLKADOT,STRIPE,SOLIDCOLOR
        }
    public static void main(String[] args) {
        Scanner keyboard = new Scanner(System.in);
        System.out.println("There are three doors. one is polkadotted, one is striped, and one is sold red. chose a door using polkadot, stripe, solidcolor as keywords");
        String s;
        s=keyboard.nextLine();
        Door kind = null;
        if(s.contains("dot"))
        {
            kind=Door.POLKADOT;
        }
        else if (s.contains("Stripe"))
        {
            kind=Door.SOLIDCOLOR;
        }
        else if (s.contains("solid"))
        {
            kind=Door.STRIPE;
        }
        else
        {
            System.out.println("Sorry, not a door");
        }
        
        
        if (kind!=Door.POLKADOT || kind!=Door.SOLIDCOLOR || kind!=Door.STRIPE)
        {
            System.out.println("");
        }
        else
        {
            System.out.println("All 3 doors lead to the same room...");
        }
        }
    }
    

